package com.woniu.service;

import com.nimbusds.jose.JOSEException;
import com.woniu.entity.User;
import com.woniu.util.ResponseData;

import java.text.ParseException;

public interface UserService {
    /**
     * 用户登录
     * @param user
     * @return
     */
    ResponseData<?> login(User user) throws JOSEException;

    /**
     * 用户添加购物车
     */
    ResponseData<?> addCart(Integer id , Integer buyNum) throws ParseException;

    /**
     * 查询用户购物车和地址信息
     * @return
     */
    ResponseData<?> queryCartAndAddr() throws ParseException;
}
